package com.sgb.kjwl.view.widget.lease;

import android.app.Activity;
import android.content.ClipData;
import android.content.ClipboardManager;
import android.content.Context;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Canvas;
import android.graphics.Color;
import android.os.Bundle;
import android.os.Environment;
import android.provider.MediaStore;
import android.text.TextUtils;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.apeng.permissions.EsayPermissions;
import com.apeng.permissions.OnPermission;
import com.sgb.kjwl.R;
import com.sgb.kjwl.view.widget.pick.PickEmploymentShareDialog;
import com.swgk.core.dialog.BaseBottomDialog;
import com.swgk.core.dialog.DialogViewHolder;
import com.swgk.core.util.MToast;
import com.swgk.core.util.ResolutionUtil;
import com.swgk.core.util.qrcode.QRCodeUtils;

import java.io.File;
import java.io.FileOutputStream;
import java.util.HashMap;
import java.util.List;

import cn.sharesdk.dingding.friends.Dingding;
import cn.sharesdk.dingding.utils.DingdingClientNotExistException;
import cn.sharesdk.framework.Platform;
import cn.sharesdk.framework.PlatformActionListener;
import cn.sharesdk.framework.ShareSDK;
import cn.sharesdk.tencent.qq.QQ;
import cn.sharesdk.wechat.friends.Wechat;
import cn.sharesdk.wechat.moments.WechatMoments;
import cn.sharesdk.wechat.utils.WechatClientNotExistException;

/**
 * 物流信息编辑对话框
 */
public class LeaseEditLogisticsDialog extends BaseBottomDialog {

    private Activity activity;
    private String name;//联系人
    private String phone;//联系电话
    private String carNumber;//车牌号码
    private String reason;//原因

    private TextView tvName;
    private TextView tvPhone;
    private TextView tvCarNumber;
    private TextView tvReason;
    private LeaseEditLogisticsDialog dialogClickCallBack;

    public LeaseEditLogisticsDialog(String name, String phone, String carNumber, Activity activity, DialogCallBack dialogCallBack) {
        super(activity, dialogCallBack);
        this.name = name;
        this.phone = phone;
        this.carNumber = carNumber;
        this.activity = activity;
        initData();
    }

    private void initData() {

    }

    @Override
    protected int dialogLayout() {
        return R.layout.pick_share_dialog_employment;
    }

    @Override
    protected void initView(DialogViewHolder holder, Bundle savedInstanceState) {

    }

    public interface DialogClickCallBack {
        void onItemClick(String name,String phone,String carNumber,String reason);
    }

    public LeaseEditLogisticsDialog setDialogClickCallBack(DialogClickCallBack dialogClickCallBack) {
        this.dialogClickCallBack = (LeaseEditLogisticsDialog) dialogClickCallBack;
        return this;
    }
}
